package com.team11.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author pjc
 * @since 2021-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Homework对象", description="")
public class Homework implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "作业提交表")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "作业id")
    @TableField("h_id")
    private Integer hId;

    @ApiModelProperty(value = "作业状态（0为待提交，1为未批复，2为已批复）")
    private Integer status;

    @ApiModelProperty(value = "项目组id")
    @TableField("p_id")
    private Integer pId;

    @ApiModelProperty(value = "学生id")
    @TableField("sid")
    private Integer sid;

    @ApiModelProperty(value = "分数")
    private Float score;

    @ApiModelProperty(value = "回答内容")
    private String answer;

    @ApiModelProperty(value = "附件id")
    @TableField("c_f_id")
    private Integer cFId;

    @ApiModelProperty(value = "批复内容")
    @TableField("reply")
    private String reply;

    @ApiModelProperty(value = "批复附件id")
    @TableField("reply_cfd")
    private Integer replyCfd;

    @ApiModelProperty(value = "学生作业提交时间")
    @TableField("h_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime hTime;
}
